class OrderEntity {
  String order_id,
      order_sn,
      order_state,
      goods_num,
      total;
  List<String> goods_img;
  OrderEntity();

  OrderEntity.fromJson(dynamic json) {
    if (json != null && json is Map) {
      order_id = '${json['order_id']}';
      order_sn = json['order_sn'];
      order_state = json['order_state'];
      goods_num = json['goods_num'];
      total = json['total'];
      //images
      final imgs = json['goods_img'] ?? [];
      goods_img = List();
      for (dynamic i in imgs) {
        goods_img.add('$i');
      }
    }
  }
}
